Fix module blacklisting
authorMatthias Clasen <mclasen@redhat.com>
Fri, 23 Sep 2011 20:25:33 +0000 (16:25 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 23 Sep 2011 20:42:45 +0000 (16:42 -0400)
commitdd82b3043303d6635d19dda85092d3affcdae36a
tree9a28fdea16f6803067f3d25af9c4f155cab3e44b
parentbd8e9085abe7b1874bba3b72c5074f427d0959b3
Fix module blacklisting

The handling of the module lists is a bit confusing here. There is
a global list that is populated with initial modules from GTK_MODULES,
and then there is a second list that is suppposed to hold the modules
loaded from the gtk-modules xsetting, which we attach to the GtkSettings
object. The blacklisting caused us to put the wrong modules into the
second list, and mess up the module refcounts, eventually double-freeing
memory when the setting changes repeatedly.

https://bugzilla.gnome.org/show_bug.cgi?id=659966
gtk/gtkmodules.c